package com.quanyan.stadium.entity;

import com.quanyan.common.Plugin.Page;
import java.util.ArrayList;
import java.util.List;

public class TbGameGradeExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected Page page;

    public TbGameGradeExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setPage(Page page) {
        this.page=page;
    }

    public Page getPage() {
        return page;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andLevelIsNull() {
            addCriterion("level is null");
            return (Criteria) this;
        }

        public Criteria andLevelIsNotNull() {
            addCriterion("level is not null");
            return (Criteria) this;
        }

        public Criteria andLevelEqualTo(Integer value) {
            addCriterion("level =", value, "level");
            return (Criteria) this;
        }

        public Criteria andLevelNotEqualTo(Integer value) {
            addCriterion("level <>", value, "level");
            return (Criteria) this;
        }

        public Criteria andLevelGreaterThan(Integer value) {
            addCriterion("level >", value, "level");
            return (Criteria) this;
        }

        public Criteria andLevelGreaterThanOrEqualTo(Integer value) {
            addCriterion("level >=", value, "level");
            return (Criteria) this;
        }

        public Criteria andLevelLessThan(Integer value) {
            addCriterion("level <", value, "level");
            return (Criteria) this;
        }

        public Criteria andLevelLessThanOrEqualTo(Integer value) {
            addCriterion("level <=", value, "level");
            return (Criteria) this;
        }

        public Criteria andLevelIn(List<Integer> values) {
            addCriterion("level in", values, "level");
            return (Criteria) this;
        }

        public Criteria andLevelNotIn(List<Integer> values) {
            addCriterion("level not in", values, "level");
            return (Criteria) this;
        }

        public Criteria andLevelBetween(Integer value1, Integer value2) {
            addCriterion("level between", value1, value2, "level");
            return (Criteria) this;
        }

        public Criteria andLevelNotBetween(Integer value1, Integer value2) {
            addCriterion("level not between", value1, value2, "level");
            return (Criteria) this;
        }

        public Criteria andBasketballIsNull() {
            addCriterion("basketball is null");
            return (Criteria) this;
        }

        public Criteria andBasketballIsNotNull() {
            addCriterion("basketball is not null");
            return (Criteria) this;
        }

        public Criteria andBasketballEqualTo(String value) {
            addCriterion("basketball =", value, "basketball");
            return (Criteria) this;
        }

        public Criteria andBasketballNotEqualTo(String value) {
            addCriterion("basketball <>", value, "basketball");
            return (Criteria) this;
        }

        public Criteria andBasketballGreaterThan(String value) {
            addCriterion("basketball >", value, "basketball");
            return (Criteria) this;
        }

        public Criteria andBasketballGreaterThanOrEqualTo(String value) {
            addCriterion("basketball >=", value, "basketball");
            return (Criteria) this;
        }

        public Criteria andBasketballLessThan(String value) {
            addCriterion("basketball <", value, "basketball");
            return (Criteria) this;
        }

        public Criteria andBasketballLessThanOrEqualTo(String value) {
            addCriterion("basketball <=", value, "basketball");
            return (Criteria) this;
        }

        public Criteria andBasketballLike(String value) {
            addCriterion("basketball like", value, "basketball");
            return (Criteria) this;
        }

        public Criteria andBasketballNotLike(String value) {
            addCriterion("basketball not like", value, "basketball");
            return (Criteria) this;
        }

        public Criteria andBasketballIn(List<String> values) {
            addCriterion("basketball in", values, "basketball");
            return (Criteria) this;
        }

        public Criteria andBasketballNotIn(List<String> values) {
            addCriterion("basketball not in", values, "basketball");
            return (Criteria) this;
        }

        public Criteria andBasketballBetween(String value1, String value2) {
            addCriterion("basketball between", value1, value2, "basketball");
            return (Criteria) this;
        }

        public Criteria andBasketballNotBetween(String value1, String value2) {
            addCriterion("basketball not between", value1, value2, "basketball");
            return (Criteria) this;
        }

        public Criteria andFootballIsNull() {
            addCriterion("football is null");
            return (Criteria) this;
        }

        public Criteria andFootballIsNotNull() {
            addCriterion("football is not null");
            return (Criteria) this;
        }

        public Criteria andFootballEqualTo(String value) {
            addCriterion("football =", value, "football");
            return (Criteria) this;
        }

        public Criteria andFootballNotEqualTo(String value) {
            addCriterion("football <>", value, "football");
            return (Criteria) this;
        }

        public Criteria andFootballGreaterThan(String value) {
            addCriterion("football >", value, "football");
            return (Criteria) this;
        }

        public Criteria andFootballGreaterThanOrEqualTo(String value) {
            addCriterion("football >=", value, "football");
            return (Criteria) this;
        }

        public Criteria andFootballLessThan(String value) {
            addCriterion("football <", value, "football");
            return (Criteria) this;
        }

        public Criteria andFootballLessThanOrEqualTo(String value) {
            addCriterion("football <=", value, "football");
            return (Criteria) this;
        }

        public Criteria andFootballLike(String value) {
            addCriterion("football like", value, "football");
            return (Criteria) this;
        }

        public Criteria andFootballNotLike(String value) {
            addCriterion("football not like", value, "football");
            return (Criteria) this;
        }

        public Criteria andFootballIn(List<String> values) {
            addCriterion("football in", values, "football");
            return (Criteria) this;
        }

        public Criteria andFootballNotIn(List<String> values) {
            addCriterion("football not in", values, "football");
            return (Criteria) this;
        }

        public Criteria andFootballBetween(String value1, String value2) {
            addCriterion("football between", value1, value2, "football");
            return (Criteria) this;
        }

        public Criteria andFootballNotBetween(String value1, String value2) {
            addCriterion("football not between", value1, value2, "football");
            return (Criteria) this;
        }

        public Criteria andTennisIsNull() {
            addCriterion("tennis is null");
            return (Criteria) this;
        }

        public Criteria andTennisIsNotNull() {
            addCriterion("tennis is not null");
            return (Criteria) this;
        }

        public Criteria andTennisEqualTo(String value) {
            addCriterion("tennis =", value, "tennis");
            return (Criteria) this;
        }

        public Criteria andTennisNotEqualTo(String value) {
            addCriterion("tennis <>", value, "tennis");
            return (Criteria) this;
        }

        public Criteria andTennisGreaterThan(String value) {
            addCriterion("tennis >", value, "tennis");
            return (Criteria) this;
        }

        public Criteria andTennisGreaterThanOrEqualTo(String value) {
            addCriterion("tennis >=", value, "tennis");
            return (Criteria) this;
        }

        public Criteria andTennisLessThan(String value) {
            addCriterion("tennis <", value, "tennis");
            return (Criteria) this;
        }

        public Criteria andTennisLessThanOrEqualTo(String value) {
            addCriterion("tennis <=", value, "tennis");
            return (Criteria) this;
        }

        public Criteria andTennisLike(String value) {
            addCriterion("tennis like", value, "tennis");
            return (Criteria) this;
        }

        public Criteria andTennisNotLike(String value) {
            addCriterion("tennis not like", value, "tennis");
            return (Criteria) this;
        }

        public Criteria andTennisIn(List<String> values) {
            addCriterion("tennis in", values, "tennis");
            return (Criteria) this;
        }

        public Criteria andTennisNotIn(List<String> values) {
            addCriterion("tennis not in", values, "tennis");
            return (Criteria) this;
        }

        public Criteria andTennisBetween(String value1, String value2) {
            addCriterion("tennis between", value1, value2, "tennis");
            return (Criteria) this;
        }

        public Criteria andTennisNotBetween(String value1, String value2) {
            addCriterion("tennis not between", value1, value2, "tennis");
            return (Criteria) this;
        }

        public Criteria andBadmintonIsNull() {
            addCriterion("badminton is null");
            return (Criteria) this;
        }

        public Criteria andBadmintonIsNotNull() {
            addCriterion("badminton is not null");
            return (Criteria) this;
        }

        public Criteria andBadmintonEqualTo(String value) {
            addCriterion("badminton =", value, "badminton");
            return (Criteria) this;
        }

        public Criteria andBadmintonNotEqualTo(String value) {
            addCriterion("badminton <>", value, "badminton");
            return (Criteria) this;
        }

        public Criteria andBadmintonGreaterThan(String value) {
            addCriterion("badminton >", value, "badminton");
            return (Criteria) this;
        }

        public Criteria andBadmintonGreaterThanOrEqualTo(String value) {
            addCriterion("badminton >=", value, "badminton");
            return (Criteria) this;
        }

        public Criteria andBadmintonLessThan(String value) {
            addCriterion("badminton <", value, "badminton");
            return (Criteria) this;
        }

        public Criteria andBadmintonLessThanOrEqualTo(String value) {
            addCriterion("badminton <=", value, "badminton");
            return (Criteria) this;
        }

        public Criteria andBadmintonLike(String value) {
            addCriterion("badminton like", value, "badminton");
            return (Criteria) this;
        }

        public Criteria andBadmintonNotLike(String value) {
            addCriterion("badminton not like", value, "badminton");
            return (Criteria) this;
        }

        public Criteria andBadmintonIn(List<String> values) {
            addCriterion("badminton in", values, "badminton");
            return (Criteria) this;
        }

        public Criteria andBadmintonNotIn(List<String> values) {
            addCriterion("badminton not in", values, "badminton");
            return (Criteria) this;
        }

        public Criteria andBadmintonBetween(String value1, String value2) {
            addCriterion("badminton between", value1, value2, "badminton");
            return (Criteria) this;
        }

        public Criteria andBadmintonNotBetween(String value1, String value2) {
            addCriterion("badminton not between", value1, value2, "badminton");
            return (Criteria) this;
        }

        public Criteria andTableTennisIsNull() {
            addCriterion("table_tennis is null");
            return (Criteria) this;
        }

        public Criteria andTableTennisIsNotNull() {
            addCriterion("table_tennis is not null");
            return (Criteria) this;
        }

        public Criteria andTableTennisEqualTo(String value) {
            addCriterion("table_tennis =", value, "tableTennis");
            return (Criteria) this;
        }

        public Criteria andTableTennisNotEqualTo(String value) {
            addCriterion("table_tennis <>", value, "tableTennis");
            return (Criteria) this;
        }

        public Criteria andTableTennisGreaterThan(String value) {
            addCriterion("table_tennis >", value, "tableTennis");
            return (Criteria) this;
        }

        public Criteria andTableTennisGreaterThanOrEqualTo(String value) {
            addCriterion("table_tennis >=", value, "tableTennis");
            return (Criteria) this;
        }

        public Criteria andTableTennisLessThan(String value) {
            addCriterion("table_tennis <", value, "tableTennis");
            return (Criteria) this;
        }

        public Criteria andTableTennisLessThanOrEqualTo(String value) {
            addCriterion("table_tennis <=", value, "tableTennis");
            return (Criteria) this;
        }

        public Criteria andTableTennisLike(String value) {
            addCriterion("table_tennis like", value, "tableTennis");
            return (Criteria) this;
        }

        public Criteria andTableTennisNotLike(String value) {
            addCriterion("table_tennis not like", value, "tableTennis");
            return (Criteria) this;
        }

        public Criteria andTableTennisIn(List<String> values) {
            addCriterion("table_tennis in", values, "tableTennis");
            return (Criteria) this;
        }

        public Criteria andTableTennisNotIn(List<String> values) {
            addCriterion("table_tennis not in", values, "tableTennis");
            return (Criteria) this;
        }

        public Criteria andTableTennisBetween(String value1, String value2) {
            addCriterion("table_tennis between", value1, value2, "tableTennis");
            return (Criteria) this;
        }

        public Criteria andTableTennisNotBetween(String value1, String value2) {
            addCriterion("table_tennis not between", value1, value2, "tableTennis");
            return (Criteria) this;
        }

        public Criteria andGolfIsNull() {
            addCriterion("golf is null");
            return (Criteria) this;
        }

        public Criteria andGolfIsNotNull() {
            addCriterion("golf is not null");
            return (Criteria) this;
        }

        public Criteria andGolfEqualTo(String value) {
            addCriterion("golf =", value, "golf");
            return (Criteria) this;
        }

        public Criteria andGolfNotEqualTo(String value) {
            addCriterion("golf <>", value, "golf");
            return (Criteria) this;
        }

        public Criteria andGolfGreaterThan(String value) {
            addCriterion("golf >", value, "golf");
            return (Criteria) this;
        }

        public Criteria andGolfGreaterThanOrEqualTo(String value) {
            addCriterion("golf >=", value, "golf");
            return (Criteria) this;
        }

        public Criteria andGolfLessThan(String value) {
            addCriterion("golf <", value, "golf");
            return (Criteria) this;
        }

        public Criteria andGolfLessThanOrEqualTo(String value) {
            addCriterion("golf <=", value, "golf");
            return (Criteria) this;
        }

        public Criteria andGolfLike(String value) {
            addCriterion("golf like", value, "golf");
            return (Criteria) this;
        }

        public Criteria andGolfNotLike(String value) {
            addCriterion("golf not like", value, "golf");
            return (Criteria) this;
        }

        public Criteria andGolfIn(List<String> values) {
            addCriterion("golf in", values, "golf");
            return (Criteria) this;
        }

        public Criteria andGolfNotIn(List<String> values) {
            addCriterion("golf not in", values, "golf");
            return (Criteria) this;
        }

        public Criteria andGolfBetween(String value1, String value2) {
            addCriterion("golf between", value1, value2, "golf");
            return (Criteria) this;
        }

        public Criteria andGolfNotBetween(String value1, String value2) {
            addCriterion("golf not between", value1, value2, "golf");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}